package com.oa.ylms.apps.dao.account.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.oa.ylms.apps.dao.account.IAccountCheckDao;
import com.oa.ylms.apps.entity.account.AccountCheckValue;

public class AccountCheckDaoImpl extends HibernateDaoSupport implements IAccountCheckDao {
	@Override
	public int addAccountCheck(AccountCheckValue accountCheck) throws Exception {
		if (accountCheck != null) {
			this.getHibernateTemplate().save(accountCheck);
			return accountCheck.getId();
		}
		return 0;
	}

}
